<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Father(unames) {
            this.unames = unames
        }
        Father.prototype.dazhangtao = function () {
            console.log('打张涛');
        }
        function Son(unames) {
            Father.call(this, unames)
        }
        Son.prototype = new Father;
        Son.prototype.constructor = Son;
        Son.prototype.count = function () {
            
        }
        var sumns = new Son("张涛")
        console.log(sumns);
    </script>
</body>

</html>